local total = achievements.GetValue( "Prop Hunt: Camouflage", "total", 0 )
if ( achievements.IsGamemode( "Prop Hunt" ) || total == 10 ) then

	local function SetMessage( msg )
		local text = msg:ReadString()
		if ( text == "Props Win!" && LocalPlayer():Team() == 1 && total != 10 ) then
			total = math.Clamp( total + 1, 0, 10 )
			achievements.SetValue( "Prop Hunt: Camouflage", "total", total )
			achievements.Update( "Prop Hunt: Camouflage", total / 10, total .. "/10" )
		end
		return text
	end
	usermessage.AddHook( "SetMessage", "Achievements.PropHunt:Camouflage", SetMessage )

	achievements.Register( "Prop Hunt: Camouflage", "Win 10 rounds as a prop on Prop Hunt.", "achievements/ph_camouflage", total / 10, total .. "/10" )
	
end